package com.frontop.system.modules.sys.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.frontop.system.modules.sys.mapper.SysRoleMapper;
import com.frontop.system.modules.sys.model.SysRole;
import com.frontop.system.modules.sys.service.SysRoleService;
import com.frontop.system.modules.sys.vo.SysRoleVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 角色 服务实现类
 * </p>
 *
 * @author YangJia
 * @since 2022-01-18
 */
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> implements SysRoleService {
    @Autowired
    SysRoleMapper sysRoleMapper;

    @Override
    public Page<SysRole> selectRolePage(Page<SysRole> page, SysRoleVO vo) {
        return sysRoleMapper.selectRolePage(page,vo);
    }

    @Override
    public List<Integer> getMenuIdsByRole(Integer roleId) {
        return sysRoleMapper.getMenuIdsByRole(roleId);
    }


}
